from django.urls import path
from rest_framework.routers import DefaultRouter

from course import views
from course.views import Courselist, Detail

urlpatterns = [
    path('allcate/',views.Category.as_view()),
    path('cate/',views.NowCate.as_view()),
    path('direction/',views.Direction.as_view()),
    path('childcate/',views.ChildCate.as_view()),
    path('list/',Courselist.as_view()),
    path('detail/',Detail.as_view()),
    path('hotword/',views.HotWord.as_view()),
]

router = DefaultRouter()
router.register('hot',views.HotWordView,basename='hot')
urlpatterns += router.urls